package com.wms.controller;

import com.wms.annotation.MyLog;
import com.wms.service.BasePlatformService;
import com.wms.util.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * ---Do First---
 *
 * @author:wellseasun
 * @date:2025/5/6 下午 9:12
 * @desc:
 */
@RestController
@RequestMapping("/base/platform")
public class BasePlatformController {
    @Autowired
    private BasePlatformService basePlatformService;
    /**
     * 查询全部平台名字
     */
    @GetMapping("/namelist")
    @MyLog(value = "查询全部平台名字", type = "查询")
    public R findName() {
        List<String> Names = basePlatformService.findName();
        return R.ok(Names);
    }
}
